import request from '../utils/request' // 引入axios的封装方法
import cfg from '@/config/config'

const adminDefinitionApi = {
  // 获取登陆人列表
  getUserList: param => {
    return request('post', cfg.apiUrl + 'api/bdSysLoginUser/getUserList', param)
  },

  // 获取权限集合
  getRoleList: () => {
    return request('post', cfg.apiUrl + 'api/bdSysLoginUser/getRoleList')
  },

  // 用户添加 修改
  savaUser: param => {
    return request('post', cfg.apiUrl + 'api/bdSysLoginUser/savaUser', param)
  },

  // 删除用户
  deleteUser: param => {
    return request('post', cfg.apiUrl + 'api/bdSysLoginUser/deleteUser', param)
  }

}
export default adminDefinitionApi
